<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <title>style数组语法</title>
  </head>

  <body>
    <div id="app">
      <h1 :style="[colorArr,sizeArr]">{{message}}</h1>
    </div>
    <script src="../js/vue.js"></script>
    <script>
      new Vue({
        el: "#app",
        data: {
          message: "你好，世界",
          colorArr: {
            backgroundColor: "red"
          },
          sizeArr: {
            fontSize: "100px"
          }
        }
      })
    </script>
  </body>

</html>